﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home/Home.Master" AutoEventWireup="true"
    CodeBehind="Price.aspx.cs" Inherits="Project.Home.WebForm8" %>

<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <h1>
        ROUTE & PRICE</h1>
    <div id="calculater">
        <h2>
            Step 1: Calculate of Route</h2>
        <hr />
        <table style="width: 56%;">
            <tr>
                <td style="width: 322px">
                    From:
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="DataRoute"
                        DataTextField="Location1" DataValueField="Location1" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    </asp:DropDownList>
                    To:
                    <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataSourceID="DataRoute"
                        DataTextField="Location1" DataValueField="Location1" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:LinqDataSource ID="DataRoute" runat="server" ContextTypeName="Project.DataPOFDataContext"
                        EntityTypeName="" Select="new (Location1)" TableName="Locations">
                    </asp:LinqDataSource>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 322px">
                    Distance (Km):
                    <asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
                    -->> Price (VND):
                    <asp:Label ID="Label2" runat="server" Text="0"></asp:Label>
                </td>
            </tr>
        </table>
        </BR>
        <h2>
            Step 2: Calculate of Volume</h2>
        <hr />
        Input Volume (Kg):
        <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
        <br />
        -->>Price (VND):
        <asp:Label ID="Label3" runat="server" Text="0"></asp:Label>
        <br />
        <br />
        <h2>
            Step 3: Calculate of Service</h2>
        <hr />
        Choise Service:
        <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" DataSourceID="DataService"
            DataTextField="Service1" DataValueField="Service1" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
        </asp:DropDownList>
        <br />
        -->>Price (VND):
        <asp:Label ID="Label4" runat="server" Text="0"></asp:Label>
        &nbsp;<asp:LinqDataSource ID="DataService" runat="server" ContextTypeName="Project.DataPOFDataContext"
            EntityTypeName="" Select="new (Service1)" TableName="Services">
        </asp:LinqDataSource>
        <br />
        <br />
        <br />
        <hr />
        Total (VND):
        <asp:Label ID="Label5" runat="server" Text="0"></asp:Label>
    </div>
</asp:Content>
